/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package 解析.node.node;

import 解析.node.others.TreeInfo;
import 解析.Matcher;

/**
 *
 * @author yanxi
 */
public class Prolog extends Node { 
    public Loop loop;

    public Prolog(Loop loop) {
        this.loop = loop;
        getChildren().add(loop);
    }

    @Override
    public boolean match(Matcher matcher, int i, CharSequence seq) {
        return loop.matchInit(matcher, i, seq);
    }

    @Override
    public boolean study(TreeInfo info) {
        return loop.study(info);
    } 
}
